import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';

@Injectable({
  providedIn: 'root'
})
export class CustomerIdolWaterService {

  serviceUrls = {
    idolWaterListUrl: '/userWalletRecord/idolStream', // 爱豆流水list
    idolWaterExportUrl: '/userWalletRecord/idolStreamExcel' // 导出
  }

  constructor(public httpClient: HttpClient) { }

  // 爱豆流水List
  getIdolWaterList(params: any) {
    return this.httpClient.post(this.serviceUrls.idolWaterListUrl, params).toPromise();
  }

  // 导出
  idolWaterExportData(params: any) {
    return this.httpClient.get(this.serviceUrls.idolWaterExportUrl, { params, responseType: 'blob' }).toPromise();
  }
}



